package com.hc.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;

/**
 * 商品规格表（sku表）
 */
@ApiModel(value = "商品规格表（sku表）")
@Getter
@Setter
@ToString
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "tb_product_specs")
public class ProductSpecs implements Serializable {
    /**
     * 规格编号
     */
    @TableId(value = "id", type = IdType.INPUT)
    @ApiModelProperty(value = "规格编号")
    private Integer id;

    /**
     * 商品编号
     */
    @TableField(value = "product_id")
    @ApiModelProperty(value = "商品编号")
    private Integer productId;

    /**
     * 规格名称
     */
    @TableField(value = "`name`")
    @ApiModelProperty(value = "规格名称")
    private String name;

    /**
     * 卖点
     */
    @TableField(value = "sell_point")
    @ApiModelProperty(value = "卖点")
    private String sellPoint;

    /**
     * 规格列表
     */
    @TableField(value = "product_specs")
    @ApiModelProperty(value = "规格列表")
    private String productSpecs;

    /**
     * 售价
     */
    @TableField(value = "price")
    @ApiModelProperty(value = "售价")
    private BigDecimal price;

    /**
     * 条形码
     */
    @TableField(value = "barcode")
    @ApiModelProperty(value = "条形码")
    private String barcode;

    /**
     * 首图
     */
    @TableField(value = "img")
    @ApiModelProperty(value = "首图")
    private String img;

    /**
     * 图片列表
     */
    @TableField(value = "pics")
    @ApiModelProperty(value = "图片列表")
    private String pics;

    /**
     * 库存
     */
    @TableField(value = "amount")
    @ApiModelProperty(value = "库存")
    private Integer amount;

    /**
     * 库存预警数量
     */
    @TableField(value = "alarm_amount")
    @ApiModelProperty(value = "库存预警数量")
    private Integer alarmAmount;

    /**
     * 排序
     */
    @TableField(value = "priority")
    @ApiModelProperty(value = "排序")
    private Integer priority;

    /**
     * 状态 1上架  2下架
     */
    @TableField(value = "`status`")
    @ApiModelProperty(value = "状态 1上架  2下架")
    private Integer status;

    /**
     * 备注信息
     */
    @TableField(value = "info")
    @ApiModelProperty(value = "备注信息")
    private String info;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    @ApiModelProperty(value = "更新时间")
    private LocalDateTime updateTime;

    private static final long serialVersionUID = 1L;
}